import { Locale, NavBar, Popup, Tabbar, TabbarItem, Button, Form, Field, Cell, CellGroup, Stepper, SwipeCell, DatePicker, Picker, Grid, GridItem, Tag, Empty, List, Toast, Uploader } from 'vant'
import zhCN from 'vant/es/locale/lang/zh-CN'

export default defineNuxtPlugin((nuxtApp) => {
  Locale.use('zh-CN', zhCN)
  const app = nuxtApp.vueApp
  app.use(NavBar)
  app.use(Popup)
  app.use(Tabbar)
  app.use(TabbarItem)
  app.use(Button)
  app.use(Form)
  app.use(Field)
  app.use(Cell)
  app.use(CellGroup)
  app.use(Stepper)
  app.use(SwipeCell)
  app.use(DatePicker)
  app.use(Picker)
  app.use(Grid)
  app.use(GridItem)
  app.use(Tag)
  app.use(Empty)
  app.use(List)
  app.use(Toast)
  app.use(Uploader)
})


